<?php
class News extends MY_Controller{
    function __construct() {
        parent::__construct();
        $this->load->model('mnews');
        $this->load->library("pager");
    }
    function detail($id) {
        $data['title'] = 'about';
        $data['curent'] = 'about';
        $data['template'] = "about/content";
        $limit = 7;
        $total = $this->mabout->count_status();
        $pages = $this->pager->page($total,$limit);
        $start = 0;
		$data['vietnam'] = $this->destination(1);
		$data['cambodia'] = $this->destination(2);
		$data['laos'] = $this->destination(3);
		$data['destination'] = $this->model_home->destination();
		$data['holiday'] = $this->holiday();
        $data['listpage']  = $this->pager->listpage($pages,$start,$limit);
        $data['abouts'] = $this->mabout->get_all($limit,$start);
        $this->load->view('layout',$data);
    }
}
?>